package com.ydyyt.pojo;

public class User {
	private String id;
	private String name;
	private String phone;
	private String password;
	private int myPackage;//套餐
	private double calls;//话费
	private double flow;//流量
	private int freeCallTime;//免费打电话的时长（单位：分钟）
	private int freeSendMessage;//免费短信条数
	private double rates;//每月最低资费
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public int getMyPackage() {
		return myPackage;
	}
	public void setMyPackage(int myPackage) {
		this.myPackage = myPackage;
	}
	public double getCalls() {
		return calls;
	}
	public void setCalls(double calls) {
		this.calls = calls;
	}
	public double getFlow() {
		return flow;
	}
	public void setFlow(double flow) {
		this.flow = flow;
	}
	
	public int getFreeCallTime() {
		return freeCallTime;
	}
	public void setFreeCallTime(int freeCallTime) {
		this.freeCallTime = freeCallTime;
	}
	public int getFreeSendMessage() {
		return freeSendMessage;
	}
	public void setFreeSedMessage(int freeSendMessage) {
		this.freeSendMessage = freeSendMessage;
	}
	public double getRates() {
		return rates;
	}
	public void setRates(double rates) {
		this.rates = rates;
	}
	@Override
	public String toString() {
		return "User [id =" + id + ",name = " + name + ",phone = " + phone  + ",password = " + password + ",myPackage = " + myPackage + "\n" + 
	",calls = " + calls + "元" + ",flow = " + flow + "MB" + ",freeCallTime = " + freeCallTime + "分钟" + ",freeSendMessage = " + freeSendMessage + "条"+ ",rates = " + rates + "元/月" + "]";
	}
	//用户
	public User() {}
	public User(String phone, String password) {
		super();
		this.phone = phone;
		this.password = password;
	}
	public User(String id, String name, String phone, String password, int myPackage, double calls, double flow) {
		super();
		this.id = id;
		this.name = name;
		this.phone = phone;
		this.password = password;
		this.myPackage = myPackage;
		this.calls = calls;
		this.flow = flow;
	}
	
	
}
